<template>
  <div class="cell">
    <div class="item">
      <a href="javascript:void(0);">
        <slot name="title"></slot>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: "Cell"
};
</script>

<style scoped>
.cell .item a {
  background-color: #ececec;
  text-align: center;
  color: #333;
  font-size: 14px;
  display: block;
  width: 100%;
  height: 46px;
  line-height: 46px;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cell.active .item {
  position: relative;
}
.cell.active .item a{
  background-color: #d8d8d8;
  color: var(--theme);
}
.cell.active .item a::before {
  content: "";
  width: 3px;
  height: 60%;
  background-color: var(--theme);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
</style>